#include<stdio.h>
int Num(int* num, int target, int numSize)
{
	int i, j;
	for (i = 0; i < numSize; i++)
	{
		for (j = 0; j < numSize; j++)
		{
			if (num[i] + num[j] == target)
				return i + j;
		}
	}
}
int main()
{
	int num[] = { 1,2,3,4,5,6,7,8,9,0 };
	int sum = Num(num, 10, 10);
	printf("%d", sum);
	return 0;
}